<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车 - 唯品会</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/cart.css">
</head>
<body>
    <header class="header">
        <div class="logo">唯品会</div>
        <nav class="user-nav">
            <a href="index.html">继续购物</a>
            <a href="login.html">登录</a>
        </nav>
    </header>

    <main class="cart-container">
        <h2>我的购物车</h2>
        <div class="cart-items" id="cartItems">
            <!-- 购物车商品将通过JavaScript动态加载 -->
            <div class="empty-cart">
                <p>购物车还是空的哦~</p>
                <a href="index.html" class="btn">去逛逛</a>
            </div>
        </div>
        
        <div class="cart-summary">
            <div class="summary-row">
                <span>商品总计</span>
                <span id="subtotal">¥0.00</span>
            </div>
            <div class="summary-row">
                <span>运费</span>
                <span>¥0.00</span>
            </div>
            <div class="summary-row total">
                <span>应付总额</span>
                <span id="total">¥0.00</span>
            </div>
            <button class="checkout-btn" id="checkoutBtn">去结算</button>
        </div>
    </main>

    <script src="js/cart.js"></script>
</body>
</html>